package Server.Message;

import java.util.ArrayList;
import Server.DataBase.Course;
/**
 * 
 * MessageGetCoursesReplay
 * 
 *
 */
public class MessageGetCoursesReplay extends Message {
	
	
	private static final long serialVersionUID = 1L;
	/**
	 * courseArray
	 */
	private ArrayList<Course> courseArray = null;
/**
 * 
 */
	public MessageGetCoursesReplay() {
		super(MessageType.MESSAGE_GET_ALL_COURSES_REPLAY);
	}
	/**
	 * 
	 * @param array
	 */
	public MessageGetCoursesReplay(ArrayList<Course> array) {
		super(MessageType.MESSAGE_GET_ALL_COURSES_REPLAY);
		this.courseArray=array;
	}
/**
 * 
 * @return courseArray
 */
	public ArrayList<Course> getCourseArray() {
		return courseArray;
	}
	/**
	 * 
	 * @param courseArray
	 */
	public void setCourseArray(ArrayList<Course> courseArray){
		this.courseArray = courseArray;
	}
	/**
	 * 
	 * @param course
	 */
	public void addCourseToArray(Course course){
		if (courseArray == null) courseArray = new ArrayList<Course>();
		courseArray.add(course);
	}
}
